package com.global.college.receiver;


import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;

import com.global.college.R;
import com.global.college.base.BaseApplication;
import com.global.college.utils.SystemUtil;

public class ConnectionChangeReceiver extends BroadcastReceiver {
	
		@Override
		public void onReceive(final Context context, Intent intent) {
			if (!SystemUtil.isNetworkAvailable(BaseApplication.getContext())) {
				//ToastUtils.showToastShort(context.getString(R.string.check_newwork_and_try_again));
				Toast toast=Toast.makeText(context,context.getString(R.string.check_newwork_and_try_again),Toast.LENGTH_SHORT);
				toast.setText(context.getString(R.string.check_newwork_and_try_again));
				toast.show();

			}
		}
	}